package com.example.repair_service.service.impl;

import com.example.repair_service.entity.CategoryEntity;
import com.example.repair_service.mapper.CategoryMapper;
import com.example.repair_service.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {


    @Autowired
    public CategoryMapper categoryMapper;
    @Override
    public List<CategoryEntity> getList() {
        return categoryMapper.getList();
    }

    @Override
    public List<CategoryEntity> getList(Long parentId) {
        return categoryMapper.getListByParentId(parentId);
    }


}
